<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<html lang="en">
<jsp:include page="header.jsp" flush="true">
	<jsp:param name="pageTitle" value="Purposeful Community" />
</jsp:include>
<style type="text/css">
html,body,.container {
	height: 100%;
}

.container {
	display: table;
	width: 100%;
	margin-top: -50px;
	padding-top: 50px;
	padding-bottom: 50px;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.row {
	height: 100%;
	display: table-row;
}

.mid-clm-home {
	position: relative;
	min-height: 1px;
	padding-top: 45px;
	padding-left: 20%;
	padding-bottom: 100%;
	margin-bottom: -100%;
}

.left-clm-home {
	position: relative;
	min-height: 1px;
	padding-top: 45px;
	padding-bottom: 100%;
	margin-bottom: -100%;
}

.right-clm-home {
	position: relative;
	min-height: 1px;
	padding-top: 45px;
	padding-left: 10px;
	padding-bottom: 100%;
	margin-bottom: -100%;
	float: left;
}

.label-home-welcome {
	color: #f05607;
	display: inline;
	text-align: center;
	font-size: 20px;
	padding-top: 45px;
}

.col-sm-3 {
	max-width: 170px;
	color: #f05607;
	font-family: "Times New Roman", Times, serif;
	font-weight: normal;
	font-size: 20px;
}

.create-comm {
	color: #f05607;
	display: inline;
	text-align: center;
	font-size: 16px;
}

body {
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #E8EDED;
}

.upload-button {
	position: relative;
	right: -22px;
}

.file-button {
	position: relative;
	right: -20px;
	margin-top: 35px;
}

.form-horizontal .form-control {
	position: relative;
	height: auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
	/* 	background-color: #44BBF8;
	color: #f05607; */
}

.form-horizontal {
	max-width: 500px;
	padding: 0px;
	margin: 0 auto;
	z-index: 2;
}

.form-control {
	max-width: 330px;
	position: relative;
	height: auto;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.form-group {
	margin-bottom: 0px;
}

.col-sm-2 {
	max-width: 170px;
	color: #f05607;
	/* font-family: "Times New Roman", Times, serif; */
	font-weight: normal;
	font-size: 120%;
}

.bigLogo {
	margin: 0 auto;
	padding-top: 10px;
	padding-bottom: 20px;
}
/*
.btn {
	max-width: 330px;
	background-color: #44BBF8;
	color: #f05607;
	margin: 0 auto;
	margin-top: 15px;
	font-weight: bold;
	border-radius: 6px;
}

.btn:hover {
	background-color: beige;
	color: #f05607;
}*/

/* for community listing */
.search-result {
	border: auto;
	border: 1px solid #E8EDED;
	padding: 10px 40px;
	background: #FFFFFF;
	width: 100%;
	border-radius: 25px;
	margin: 3px 3px;
	height: 200%;
	position: relative;
}
.labelClassName {
	color: #f05607;
}

.labelClass {
	font-weight: lighter;
}
.go-comm {
	bottom: 0;
}
</style>

<div class="container">
	<div class="row">
		<div class="col-md-3 no-float left-clm-home">
			<p>
				<label class="label-home-welcome">Welcome
					${sessionUser.name} </label>
			</p> 
			<img alt="Profile Image" style="max-height: 150px; max-width: 150px"
				src="<c:url value='/img/${sessionUser.profilePicLoc}'/>"><br>
			<br> <br>
		
			<form id="user" class="form-signin" method="POST"
				>
				<label class="col-sm-2 control-label" for="name" style="float: left">Name:</label>
				<div class="">
					<input id="name" name="name" class="form-control"
						value="${sessionUser.name}" required="required">
				</div>
				<br> <label class="col-sm-2 control-label" for="surname">Surname:</label>
				<div class="">
					<input id="surname" name="surname"
						class="form-control"  value="${sessionUser.surname}" required="required">
				</div>
				<br> <label class="col-sm-2 control-label" for="email"
					style="float: left">Email:</label>
				<div class="">
					<input id="email" name="email" 
						class="form-control" type="email" value="${sessionUser.email}" required="required">
				</div>
				<br> <label class="col-sm-2 control-label" for="password">Password:</label>
				<div class="">
					<input id="password" name="password" class="form-control"
						type="password" value="${sessionUser.password}" required="required">
				</div>
				<br> <label class="col-sm-2 control-label" for="location">Location:</label>
				<div class="">
					<input id="location" name="location" 
						class="form-control" 
						value="${sessionUser.location}" required="required">
				</div>
				<br>
				
				<button class="btn btn-lg btn-primary btn-block" type="submit">Edit
					Your Profile</button>
			</form>

		</div>
		
		
	</div>
</div>
</html>